package cm.cool.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cm.cool.web.bean.Feeds;
import cm.cool.web.service.feeds.FeedsService;
import cm.cool.web.util.respon.PaginationDto;
import cm.cool.web.util.respon.R;

@Controller
@RequestMapping("/Feeds")
public class FeedsController {

	
	@Autowired
	FeedsService feedsService;
	
	/**
	 * 查询所有的反馈记录
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/selectByAll")
	public R selectByAll(Feeds feeds,PaginationDto paginationDto){
		return feedsService.selectByAll(feeds, paginationDto);
	}
}
